package com.biz.primus.ms.geo.trans;

import com.biz.primus.model.geo.vo.ProvinceResponseVo;
import com.biz.primus.ms.geo.dao.ro.ProvinceRo;
import com.google.common.base.Function;

/**
 * @author JKLiues
 * @date 2017/11/8
 */
public class ProvinceRo2ProvinceResponseVo implements Function<ProvinceRo, ProvinceResponseVo> {
    @Override
    public ProvinceResponseVo apply(ProvinceRo input) {
        if (input == null) {
            return null;
        }
        ProvinceResponseVo resp = (ProvinceResponseVo) new AbstractAreaRo2AbstractResponseVo(new ProvinceResponseVo()).apply(input);
        resp.setRegionId(input.getRegionId().longValue());
        return resp;
    }
}
